package com.yellow.cloud.system;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync
@EnableScheduling
@EnableFeignClients
@EnableDiscoveryClient
@ComponentScan(basePackages= "com.yellowframework.cloud") // 扫描yellow-cloud下的框架
@ComponentScan(basePackages= "com.yellow.cloud") // 扫描yellow-cloud下的服务
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class, args);
    }

}
